Skip to content

Commit

Permalink
HUE-4454 [security] Disclosure of Web Server Information
Browse files Browse the repository at this point in the history
  • Loading branch information
ranade1 committed Jul 27, 2016
1 parent 68b9434 commit 9f52773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desktop/core/src/desktop/lib/wsgiserver.py
Expand Up @@ -1523,7 +1523,9 @@ class CherryPyWSGIServer(object):
nodelay = True

ConnectionClass = HTTPConnection
environ = {}
environ = {
"SERVER_SOFTWARE": os.getenv('SERVER_SOFTWARE')
}

# Paths to certificate and private key files
ssl_certificate = None
Expand Down
2 changes: 2 additions & 0 deletions desktop/core/src/desktop/settings.py
Expand Up @@ -467,6 +467,8 @@
# Set up environment variable so Kerberos libraries look at our private
# ticket cache
os.environ['KRB5CCNAME'] = desktop.conf.KERBEROS.CCACHE_PATH.get()
if not os.getenv('SERVER_SOFTWARE'):
os.environ['SERVER_SOFTWARE'] = 'apache'

# If Hue is configured to use a CACERTS truststore, make sure that the
# REQUESTS_CA_BUNDLE is set so that we can use it when we make external requests.
Expand Down

0 comments on commit 9f52773

Please sign in to comment.